<?php 
/* SVN FILE: $Id$ */
/* Formato Test cases generated on: 2010-01-17 23:22:59 : 1263792179*/
App::import('Model', 'Formato');

class FormatoTestCase extends CakeTestCase {
	var $Formato = null;
	var $fixtures = array('app.formato');

	function startTest() {
		$this->Formato =& ClassRegistry::init('Formato');
	}

	function testFormatoInstance() {
		$this->assertTrue(is_a($this->Formato, 'Formato'));
	}

	function testFormatoFind() {
		$this->Formato->recursive = -1;
		$results = $this->Formato->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Formato' => array(
			'id'  => 1,
			'nombre'  => 'Lorem ipsum dolor sit amet',
			'ruta'  => 'Lorem ipsum dolor sit amet'
		));
		$this->assertEqual($results, $expected);
	}
}
?>